#pragma once 

#include "Team.h"

Team::Team()
{
	playerOne = 0;
	playerTwo = 0;

	score = 0;

}

Team::~Team()
{
	if(playerOne != 0)
		playerOne = 0;

	if(playerTwo != 0)
		playerTwo = 0;
}

void Team::setPlayerOne(Player * p1)
{
	playerOne = p1;
}


void Team::setPlayerTow(Player * p2)
{
	playerTwo = p2;
}


void Team::addToScore(unsigned int addition)
{
	score += addition;
}

TeamTake & Team::getTake()
{
	return take;
}

Player * Team::getPlayerOne()
{
	return playerOne;
}

Player * Team::getPlayerTwo()
{
	return playerTwo;
}

void Team::setTeamName(std::string name)
{
	teamName = name;
}

std::string Team::getTeamName()
{
	return teamName;
}